package com.xcj.springai.chatMemory;

import org.springframework.ai.embedding.EmbeddingModel;
import org.springframework.ai.vectorstore.SimpleVectorStore;
import org.springframework.ai.vectorstore.VectorStore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 *  VectorStore Bean 配置
 *  用于向量化
 */
@Configuration
public class VectorStoreConfig {

    @Bean
    public VectorStore simple(EmbeddingModel embeddingModel) {
        return SimpleVectorStore.builder(embeddingModel).build();
    }
}
